$(function(){
    showCondition(true);
	
    var clinicData = $("#tabContent > .tab-pane.active").data();
    var range_ybbClinic="";//查询数据的范围
    if(clinicData.value != "undefined")
	{
    	paramTabPage[tabId] = clinicData;
    	range_ybbClinic = paramTabPage[tabId].previous;
    	if(paramTabPage[tabId].previous == "dep")
		{
    		$('#'+tabId+' #ybbClinicHeadTitle').append(paramTabPage[tabId].depName+"指标");
		}
    	else
		{
    		$('#'+tabId+' #ybbClinicHeadTitle').append(paramTabPage[tabId].wardName+"指标");
		}
	}
    else
	{
    	range_ybbClinic = "Hosp";
	}
    
	
	
	getQuotas("ybbClinic", loadData, "clinicallhosp-ul");
	
	function loadData(totalQuota){
		// 全院指标 (1.Hosp 2.All)  参数 4.为jsp中的div的id 5.jsp中ul的id
		loadHospQuota(range_ybbClinic,totalQuota,"clinicallhospQuotasId","clinicallhosp-ul","ybClinicTotal");
		//医师层次数据展示
		// 加载指标的div 参数 2.为jsp中的div的id 3.jsp中ul的id
		loadYibaoDoctorDiv(totalQuota,"clinicQuotasId","clinic-ul");
		loadYibaoDoctorLayerData(totalQuota,false,"ybClinicDetail");
	}
});


